home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / shadow-9.tar / shadow-9 / shadow-960129 / login.defs.linux < prev    next >
Text File  |  1995-12-17  |  7KB  |  273 lines

  1. #
  2. # /etc/login.defs - Configuration control definitions for the login package.
  3. #
  4. #    $Id: login.defs.linux,v 1.1 1995/12/16 21:51:39 marekm Exp $
  5. #
  6. # Three items must be defined:  MAIL_DIR, ENV_SUPATH, and ENV_PATH.
  7. # If unspecified, some arbitrary (and possibly incorrect) value will
  8. # be assumed.  All other items are optional - if not specified then
  9. # the described action or option will be inhibited.
  10. #
  11. # Comment lines (lines beginning with "#") and blank lines are ignored.
  12. #
  13. # Modified for Linux.  --marekm
  14.  
  15. #
  16. # Delay in seconds before being allowed another attempt after a login failure
  17. #
  18. FAIL_DELAY        3
  19.  
  20. #
  21. # Enable additional passwords upon dialup lines specified in /etc/dialups.
  22. #
  23. DIALUPS_CHECK_ENAB    yes
  24.  
  25. #
  26. # Enable logging and display of /var/log/faillog login failure info.
  27. #
  28. FAILLOG_ENAB        yes
  29.  
  30. #
  31. # Enable display of unknown usernames when login failures are recorded.
  32. #
  33. LOG_UNKFAIL_ENAB    no
  34.  
  35. #
  36. # Enable logging and display of /var/log/lastlog login time info.
  37. #
  38. LASTLOG_ENAB        yes
  39.  
  40. #
  41. # Enable checking and display of mailbox status upon login.
  42. #
  43. MAIL_CHECK_ENAB        yes
  44.  
  45. #
  46. # Enable additional checks upon password changes.
  47. #
  48. OBSCURE_CHECKS_ENAB    yes
  49.  
  50. #
  51. # Enable checking of time restrictions specified in /etc/porttime.
  52. #
  53. PORTTIME_CHECKS_ENAB    yes
  54.  
  55. #
  56. # Enable setting of ulimit, umask, and niceness from passwd gecos field.
  57. #
  58. QUOTAS_ENAB        yes
  59.  
  60. #
  61. # Enable "syslog" logging of su activity - in addition to sulog file logging.
  62. # SYSLOG_SG_ENAB does the same for newgrp and sg.
  63. #
  64. SYSLOG_SU_ENAB        yes
  65. SYSLOG_SG_ENAB        yes
  66.  
  67. #
  68. # If defined, either full pathname of a file containing device names or
  69. # a ":" delimited list of device names.  Root logins will be allowed only
  70. # upon these devices.
  71. #
  72. CONSOLE        /etc/securetty
  73. #CONSOLE    console:tty01:tty02:tty03:tty04
  74.  
  75. #
  76. # If defined, all su activity is logged to this file.
  77. #
  78. #SULOG_FILE    /var/log/sulog
  79.  
  80. #
  81. # If defined, ":" delimited list of "message of the day" files to
  82. # be displayed upon login.
  83. #
  84. MOTD_FILE    /etc/motd
  85. #MOTD_FILE    /etc/motd:/usr/lib/news/news-motd
  86.  
  87. #
  88. # If set to "yes" /etc/issue will be output before each login prompt
  89. ISSUE_FILE_ENAB    no
  90.  
  91. #
  92. # If defined, file which maps tty line to TERM environment parameter.
  93. # Each line of the file is in a format something like "vt100  tty01".
  94. #
  95. #TTYTYPE_FILE    /etc/ttytype
  96.  
  97. #
  98. # If defined, login failures will be logged here in a utmp format.
  99. #
  100. #FTMP_FILE    /var/log/ftmp
  101.  
  102. #
  103. # If defined, name of file whose presence which will inhibit non-root
  104. # logins.  The contents of this file should be a message indicating
  105. # why logins are inhibited.
  106. #
  107. NOLOGINS_FILE    /etc/nologin
  108.  
  109. #
  110. # If defined, the command name to display when running "su -".  For
  111. # example, if this is defined as "su" then a "ps" will display the
  112. # command is "-su".  If not defined, then "ps" would display the
  113. # name of the shell actually being run, e.g. something like "-sh".
  114. #
  115. SU_NAME        su
  116.  
  117. #
  118. # *REQUIRED*
  119. #   Directory where mailboxes reside, _or_ name of file, relative to the
  120. #   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
  121. #
  122. MAIL_DIR    /var/spool/mail
  123. #MAIL_FILE    .mail
  124.  
  125. #
  126. # If defined, file which inhibits all the usual chatter during the login
  127. # sequence.  If a full pathname, then hushed mode will be enabled if the
  128. # user's name or shell are found in the file.  If not a full pathname, then
  129. # hushed mode will be enabled if the file exists in the user's home directory.
  130. #
  131. HUSHLOGIN_FILE    .hushlogin
  132. #HUSHLOGIN_FILE    /etc/hushlogins
  133.  
  134. #
  135. # If defined, the presence of this value in an /etc/passwd "shell" field will
  136. # disable logins for that user, although "su" will still be allowed.
  137. #
  138. # XXX this does not seem to be implemented yet...  --marekm
  139. # no, it was implemented but I ripped it out ;-) -- jfh
  140. NOLOGIN_STR    NOLOGIN
  141.  
  142. #
  143. # If defined, either a TZ environment parameter spec or the
  144. # fully-rooted pathname of a file containing such a spec.
  145. #
  146. #ENV_TZ        TZ=CST6CDT
  147. #ENV_TZ        /etc/tzname
  148.  
  149. #
  150. # If defined, an HZ environment parameter spec.
  151. #
  152. # for Linux/x86
  153. ENV_HZ        HZ=100
  154. # For Linux/Alpha...
  155. #ENV_HZ        HZ=1024
  156.  
  157. #
  158. # *REQUIRED*  The default PATH settings, for superuser and normal users.
  159. #
  160. # (they are minimal, add the rest in the shell startup files)
  161. ENV_SUPATH    PATH=/bin:/usr/bin
  162. ENV_PATH    PATH=/bin:/usr/bin
  163.  
  164. #
  165. # Terminal permissions
  166. #
  167. #    TTYGROUP    Login tty will be assigned this group ownership.
  168. #    TTYPERM        Login tty will be set to this permission.
  169. #
  170. # If you have a "write" program which is "setgid" to a special group
  171. # which owns the terminals, define TTYGROUP to the group number and
  172. # TTYPERM to 0620.  Otherwise leave TTYGROUP commented out and assign
  173. # TTYPERM to either 622 or 600.
  174. #
  175. TTYGROUP    tty
  176. TTYPERM        0600
  177.  
  178. #
  179. # Login configuration initializations:
  180. #
  181. #    ERASECHAR    Terminal ERASE character ('\010' = backspace).
  182. #    KILLCHAR    Terminal KILL character ('\025' = CTRL/U).
  183. #    UMASK        Default "umask" value.
  184. #    ULIMIT        Default "ulimit" value.
  185. #
  186. # The ERASECHAR and KILLCHAR are used only on System V machines.
  187. # The ULIMIT is used only if the system supports it.
  188. # (now it works with setrlimit too; ulimit is in 512-byte units)
  189. #
  190. # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
  191. #
  192. ERASECHAR    0177
  193. KILLCHAR    025
  194. UMASK        077
  195. ULIMIT        2097152
  196.  
  197. #
  198. # Password aging controls:
  199. #
  200. #    PASS_MAX_DAYS    Maximum number of days a password may be used.
  201. #    PASS_MIN_DAYS    Minimum number of days allowed between password changes.
  202. #    PASS_MIN_LEN    Minimum acceptable password length.
  203. #    PASS_WARN_AGE    Number of days warning given before a password expires.
  204. #
  205. PASS_MAX_DAYS    99999
  206. PASS_MIN_DAYS    0
  207. PASS_MIN_LEN    5
  208. PASS_WARN_AGE    7
  209.  
  210. #
  211. # If "yes", the user must be listed as a member of the first gid 0 group
  212. # in /etc/group (called "root" on most Linux systems) to be able to "su"
  213. # to uid 0 accounts.  If the group doesn't exist or is empty, no one
  214. # will be able to "su" to uid 0.
  215. #
  216. SU_WHEEL_ONLY    no
  217.  
  218. #
  219. # If compiled with cracklib support, where are the dictionaries
  220. #
  221. #CRACKLIB_DICTPATH    /usr/share/lib/pw_dict
  222.  
  223. #
  224. # Min/max values for automatic uid selection in useradd
  225. #
  226. UID_MIN              100
  227. UID_MAX            60000
  228.  
  229. #
  230. # Min/max values for automatic gid selection in groupadd
  231. #
  232. GID_MIN              100
  233. GID_MAX            60000
  234.  
  235. #
  236. # Max number of login retries if password is bad
  237. #
  238. LOGIN_RETRIES        5
  239.  
  240. #
  241. # Max time in seconds for login
  242. #
  243. LOGIN_TIMEOUT        60
  244.  
  245. #
  246. # Maximum number of attempts to change password if rejected (too easy)
  247. #
  248. PASS_CHANGE_TRIES    5
  249.  
  250. #
  251. # Warn about weak passwords (but still allow them) if you are root.
  252. #
  253. PASS_ALWAYS_WARN    yes
  254.  
  255. #
  256. # Number of significant characters in the password for crypt()
  257. # (normally should be 8, change it if you have better crypt()).
  258. #
  259. PASS_MAX_LEN        8
  260.  
  261. #
  262. # Don't allow users to change their "real name" using chfn.
  263. #
  264. CHFN_RESTRICT        yes
  265.  
  266. #
  267. # Password prompt (%s will be replaced by user name).
  268. #
  269. # XXX - it doesn't work correctly yet, for now leave it commented out
  270. # to use the default which is just "Password: ".
  271. #LOGIN_STRING        "%s's Password: "
  272.  
  273.